package com.paranoidmonkey.ode;

public class ContactGeom extends ODEObject{
	
	protected ContactGeom(long id){
		handle=id;
	}
	
	public void setDepth(float depth){
		AndrODE.contactgeomSetDepth(handle, depth);
	}
	public void setG1(Geom g1){
		AndrODE.contactgeomSetG1(handle, g1.handle);
	}
	public void setG2(Geom g2){
		AndrODE.contactgeomSetG2(handle, g2.handle);		
	}
	public void setNormal(Vector3 normal){
		AndrODE.contactgeomSetNormal(handle, normal.data);
	}
	public void setPos(Vector3 pos){
		AndrODE.contactgeomSetPos(handle, pos.data);
	}

	public float getDepth(){
		return AndrODE.contactgeomGetDepth(handle);
	}
	public Geom getG1(){
		return new Geom(AndrODE.contactgeomGetG1(handle));
	}
	public Geom getG2(){
		return new Geom(AndrODE.contactgeomGetG2(handle));		
	}
	public Vector3 getNormal(){
		return new Vector3(AndrODE.contactgeomGetNormal(handle));
	}
	public Vector3 getPos(){
		return new Vector3(AndrODE.contactgeomGetPos(handle));
	}

}
